package ai.people.netmon.msgsearch.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * esProperties
 *
 * @author yuanqinglong
 * @date 2022/3/7 11:28
 */
@Data
@Component
@ConfigurationProperties("es.config")
public class ESProperties {


    /**
     * es服务url
     */
    private String esServiceUrl;

    /**
     * formSize分页每页最多行数
     */
    private Integer formSizeMaxSize = 10000;

    /**
     * 滚动分页每页最多行数
     */
    private Integer scrollMaxSize = 100;

    /**
     * scroll默认返回总数
     */
    private Integer scrollSizeTotal = 10000;
}
